package com.qcby.model;

import com.qcby.model.dto.MovieActorCreateDto;
import lombok.*;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class MovieActorRelation {
    private Integer id;

    private Integer aid;

    private Integer mid;

    private String mRole;

    private String isDirector;

    public MovieActorRelation(Integer mid, MovieActorCreateDto createDto) {
        this.aid = createDto.getAid();
        this.mid = mid;
        this.mRole = createDto.getMRole();
        this.isDirector = createDto.getIsDirector();
    }
}